package cho08;

/**
 * Created by 春旺 on 2017/4/6.
 */
//********************************************************************
// Words2.java Java Foundations
//
// Demonstrates the use of the super reference.
//********************************************************************
public class Work2
{
    //-----------------------------------------------------------------
// Instantiates a derived class and invokes its inherited and
// local methods.
//-----------------------------------------------------------------
    public static void main (String[] args)
    {
        Dictionary2 webster = new Dictionary2 (1500, 52500);
        System.out.println ("Number of pages: " + webster.getPages());
        System.out.println ("Number of definitions: " +
                webster.getDefinitions());
        System.out.println ("Definitions per page: " +
                webster.computeRatio());
    }
}
